<ui:component xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib">
	<s:cache key="footer_#{currentLang}" region="pageFragments">
		<s:div id="footer">
			<s:div>
				<h:outputText value="Powered by CroTouristGuide Team, 2007" />
				<ctg:nbsp />|<ctg:nbsp />
				<h:outputLink value="/portal/web/guest/us">
					<h:outputText value="#{messages['label.about.us']}" />
				</h:outputLink>
				<ctg:nbsp />|<ctg:nbsp />
				<h:outputLink value="/portal/web/guest/us/legalterms">
					<h:outputText value="#{messages['label.legal.terms']}" />
				</h:outputLink>
				<ctg:nbsp />|<ctg:nbsp />
				<h:outputLink value="#pnlContact" id="lnkContact" styleClass="boxy" title="#{messages['label.contact.title']}">
					<h:outputText value="#{messages['label.contact.sticker.comment']}" />
				</h:outputLink>
				<ctg:nbsp />|<ctg:nbsp />
				<h:outputLink value="/portal/web/guest/us/advertise">
					<h:outputText value="#{messages['label.advertising']}" />
				</h:outputLink>
			</s:div>
		</s:div>
		<div id="pnlContact" class="popup" style="width: 470px">
			<p>#{messages['label.contact.text1']}</p>
			<p>#{messages['label.contact.text2']}</p>
			<p>#{messages['label.contact.text3']}</p>
			<h:form id="feedbackForm" styleClass="modalForm">
				<a:region renderRegionOnly="true">
					<a:outputPanel ajaxRendered="true">
						<rich:messages globalOnly="true" infoClass="info"
							errorClass="error" />
						<table border="0" width="100%">
							<tr>
								<td><s:decorate id="imeDecoration"
									template="/templates/edit.xhtml">
									<ui:define name="label">#{messages['label.contact.name']}</ui:define>
									<h:inputText id="ime" value="#{feedbackAction.feedbackName}"
										styleClass="field" required="true">
									</h:inputText>
								</s:decorate></td>
								<td><s:decorate id="feedbackEmailDecoration"
									template="/templates/edit.xhtml">
									<ui:define name="label">#{messages['label.contact.email']}</ui:define>
									<h:inputText id="feedbackEmail"
										value="#{feedbackAction.feedbackEmail}"
										styleClass="field" required="true"
										validator="#{feedbackAction.checkEmail}">
		
									</h:inputText>
								</s:decorate></td>
							</tr>
							<tr>
								<td colspan="3"><s:decorate id="vrstaDecoration"
									template="/templates/edit.xhtml">
									<ui:define name="label">#{messages['label.contact.type']}</ui:define>
									<h:selectOneMenu value="#{feedbackAction.feedbackType}" styleClass="field">
										<f:selectItem itemValue="misljenje"
											itemLabel="#{messages['label.contact.type.feedback']}" />
										<f:selectItem itemValue="oglas"
											itemLabel="#{messages['label.contact.type.marketing']}" />
										<f:selectItem itemValue="suradnja"
											itemLabel="#{messages['label.contact.type.cooperation']}" />
										<f:selectItem itemValue="tehnika"
											itemLabel="#{messages['label.contact.type.tehnicalquestion']}" />
										<f:selectItem itemValue="ostalo"
											itemLabel="#{messages['label.contact.type.otherstuff']}" />
									</h:selectOneMenu>
								</s:decorate></td>
		
							</tr>
							<tr>
								<td colspan="3"><s:decorate id="textDecoration"
									template="/templates/edit.xhtml">
									<ui:define name="label">#{messages['label.contact.commenttext']}</ui:define>
									<h:inputTextarea styleClass="text"
										value="#{feedbackAction.feedbackMessage}" required="true">
		
									</h:inputTextarea>
								</s:decorate></td>
							</tr>
		
							<tr>
								<td colspan="3">
									<a:commandButton
									value="#{messages['label.contact.button.send']}"
									action="#{feedbackAction.registerFeedback}"></a:commandButton>
								</td>
							</tr>
						</table>
					</a:outputPanel>
				</a:region>
			</h:form>		
		</div>

		<script type="text/javascript">
			 jQuery(function() {
				 jQuery('.boxy').boxy();
			 });
		 </script>
	</s:cache>
</ui:component>

